import request from '@/common/request.js'

const api = {}

api.login = params => request.globalRequest(`/api/shop/user/login`, 'POST', params, 1,'登录中')
api.resetPwd = params => request.globalRequest(`/api/shop/user/resetpwd`, 'POST', params, 1,'重置中')
api.getCode = params => request.globalRequest(`/api/shop/user/getCode`, 'POST', params, 1,'获取验证码中')
api.getShopList = params => request.globalRequest(`/api/shop/shop/getListV2`, 'POST', params, 1,'')
api.vipList = params => request.globalRequest(`/api/shop/user/vipList`, 'POST', params, 1,'')

api.consumerData = params => request.globalRequest(`/api/shop/user/consumerData`, 'POST', params, 1,'')
api.balance = params => request.globalRequest(`/api/shop/user/balance`, 'POST', params, 1,'')
api.addBalance = params => request.globalRequest(`/api/shop/user/addBalance`, 'POST', params, 1,'')

// 操作包厢套餐
api.getCopyRoom = params => request.globalRequest(`/api/shop/room/getCopyRoom`, 'POST', params, 1,'')
api.copyRoomSet = params => request.globalRequest(`/api/shop/room/copyRoomSet`, 'POST', params, 1,'')
api.addRoomSetItem = params => request.globalRequest(`/api/shop/room/addRoomSet3`, 'POST', params, 1,'添加中')
api.removeRoomSetItem = params => request.globalRequest(`/api/shop/room/removeRoomSetItem`, 'POST', params, 1,'删除中')
api.getRoomSet = params => request.globalRequest(`/api/shop/room/getRoomSet`, 'POST', params, 1,'')

//操作台桌套餐
api.getTableCopyRoom = params => request.globalRequest(`/api/shop/shoptable/getCopyRoom`, 'POST', params, 1,'')
api.copyTableRoomSet = params => request.globalRequest(`/api/shop/shoptable/copyRoomSet`, 'POST', params, 1,'')
api.addTableSetItem = params => request.globalRequest(`/api/shop/shoptable/addRoomSet`, 'POST', params, 1,'添加中')
api.removeTableSetItem = params => request.globalRequest(`/api/shop/shoptable/removeTableSetItem`, 'POST', params, 1,'删除中')
api.getTableSet = params => request.globalRequest(`/api/shop/shoptable/getRoomSet`, 'POST', params, 1,'')

//api.getTableSet = params => request.globalRequest(`/api/shop/shoptable/getTableSet`, 'POST', params, 1,'')
//api.addTableSetItem = params => request.globalRequest(`/api/shop/shoptable/addTableSetItem`, 'POST', params, 1,'')
//api.removeTableSetItem = params => request.globalRequest(`/api/shop/shoptable/removeTableSetItem`, 'POST', params, 1,'')



api.shopIndex = params => request.globalRequest(`/api/shop/index/index`, 'POST', params, 1,'')
api.getShopIndexDevice = params => request.globalRequest(`/api/shop/device/getData`, 'POST', params, 1,'')
api.shopOrderList = params => request.globalRequest(`/api/shop/order/getList`, 'POST', params, 1,'')
api.shopOrderDetail = params => request.globalRequest(`/api/shop/order/detail`, 'POST', params, 1,'')
api.userInfo = params => request.globalRequest(`/api/shop/user/info`, 'POST', params, 1,'')
api.sharePosterList = params => request.globalRequest(`/api/shop/user/sharePosterList`, 'POST', params, 1,'')
api.getShareUrl = params => request.globalRequest(`/api/shop/user/getShareCode`, 'POST', params, 1,'')
api.register = params => request.globalRequest(`/api/shop/user/register`, 'POST', params, 1,'注册中')
api.configInit = params => request.globalRequest(`/api/shop/money/configInit`, 'POST', params, 1,'')
api.verify = params => request.globalRequest(`/api/shop/money/verify`, 'POST', params, 1,'实名中')
api.addBank = params => request.globalRequest(`/api/shop/money/addBank`, 'POST', params, 1,'添加银行卡')
api.doShopWithDraw = params => request.globalRequest(`/api/shop/money/doShopWithDraw`, 'POST', params, 1,'提现中')
api.withDrawList = params => request.globalRequest(`/api/shop/money/withDrawList`, 'POST', params, 1,'')


api.getShopDetail = params => request.globalRequest(`/api/shop/shop/shopDetail`, 'POST', params, 1,'')
api.updateShopDetail = params => request.globalRequest(`/api/shop/shop/updateDetail`, 'POST', params, 1,'修改中')
api.removeTag = params => request.globalRequest(`/api/shop/shop/removeTag`, 'POST', params, 1,'删除中')
api.removeCover = params => request.globalRequest(`/api/shop/shop/removeCover`, 'POST', params, 1,'删除中')
api.getRoomList = params => request.globalRequest(`/api/shop/room/getRoomList`, 'POST', params, 1,'')


api.roomDetail = params => request.globalRequest(`/api/shop/room/roomDetail`, 'POST', params, 1,'')

api.updateRoom = params => request.globalRequest(`/api/shop/room/updateRoom`, 'POST', params, 1,'修改中')

api.removeRoomTag = params => request.globalRequest(`/api/shop/room/removeRoomTag`, 'POST', params, 1,'删除中')
api.removeRoomCover = params => request.globalRequest(`/api/shop/room/removeRoomCover`, 'POST', params, 1,'删除中')
api.addRoom = params => request.globalRequest(`/api/shop/room/addRoom`, 'POST', params, 1,'添加中')

api.staffList = params => request.globalRequest(`/api/shop/staff/getList`, 'POST', params, 1,'')
api.deleteStaff = params => request.globalRequest(`/api/shop/staff/deleteStaff`, 'POST', params, 1,'删除中')
api.addStaff = params => request.globalRequest(`/api/shop/staff/addStaff`, 'POST', params, 1,'添加中')

api.addWifi = params => request.globalRequest(`/api/shop/shop/wifiSet`, 'POST', params, 1,'设置中')
api.getShopWifi = params => request.globalRequest(`/api/shop/shop/getShopWifi`, 'POST', params, 1,'')

api.userDetail = params => request.globalRequest(`/api/shop/user/detail`, 'POST', params, 1,'')
api.updateAvatar = params => request.globalRequest(`/api/shop/user/updateAvatar`, 'POST', params, 1,'修改中')

api.getChargeList = params => request.globalRequest(`/api/shop/shop/getChargeList`, 'POST', params, 1,'')
api.cleanList = params => request.globalRequest(`/api/shop/staff/cleanList`, 'POST', params, 1,'')


api.deviceList = params => request.globalRequest(`/api/shop/device/deviceList`, 'POST', params, 1,'')
api.roomSetList = params => request.globalRequest(`/api/shop/room/setList`, 'POST', params, 1,'')
api.bindDevice = params => request.globalRequest(`/api/shop/device/bindDevice`, 'POST', params, 1,'绑定中')
api.unbindDevice = params => request.globalRequest(`/api/shop/device/unbindDevice`, 'POST', params, 1,'操作中')

api.bindDoorDevice = params => request.globalRequest(`/api/shop/device/bindDoorDevice`, 'POST', params, 1,'绑定中')



api.dataIndex = params => request.globalRequest(`/api/shop/data/index`, 'POST', params, 1,'')
api.dataOrder = params => request.globalRequest(`/api/shop/data/orders`, 'POST', params, 1,'')
api.dataRoom = params => request.globalRequest(`/api/shop/data/roomData`, 'POST', params, 1,'')

api.dataIndexV2 = params => request.globalRequest(`/api/shop/data/v2Index`, 'POST', params, 1,'')
api.v2Order = params => request.globalRequest(`/api/shop/data/v2Order`, 'POST', params, 1,'')
api.v2Room = params => request.globalRequest(`/api/shop/data/v2Room`, 'POST', params, 1,'')
api.v2Member = params => request.globalRequest(`/api/shop/data/v2Member`, 'POST', params, 1,'')
api.shopDay = params => request.globalRequest(`/api/shop/data/shopDay`, 'POST', params, 1,'')




api.roomTime = params => request.globalRequest(`/api/app/shop/roomTime`, 'POST', params, 1,'')


api.cmdCloseOrder = params => request.globalRequest(`/api/shop/cmd/closeOrder`, 'POST', params, 1,'处理中')
api.cmdOpenDoor = params => request.globalRequest(`/api/shop/cmd/openDoor`, 'POST', params, 1,'处理中')
api.cmdXuOrder = params => request.globalRequest(`/api/shop/cmd/xuOrder`, 'POST', params, 1,'处理中')

api.roomTimeOne = params => request.globalRequest(`/api/app/shop/roomTimeOne`, 'POST', params, 1,'')

api.getAgentShopList = params => request.globalRequest(`/api/agent/shop/getList`, 'POST', params, 1,'')
api.getAgentIndex = params => request.globalRequest(`/api/agent/index/index`, 'POST', params, 1,'')
api.getAgentMoreProfit = params => request.globalRequest(`/api/agent/index/moreList`, 'POST', params, 1,'')



api.getStaffShopList = params => request.globalRequest(`/api/worker/index/getShopList`, 'POST', params, 1,'')

api.getCleanList = params => request.globalRequest(`/api/worker/index/cleanList`, 'POST', params, 1,'')
api.cleanDone = params => request.globalRequest(`/api/worker/cmd/done`, 'POST', params, 1,'')

api.cleanOpen = params => request.globalRequest(`/api/worker/cmd/openDoor`, 'POST', params, 1,'处理中')


api.tuanList = params => request.globalRequest(`/api/shop/shop/tuanList`, 'POST', params, 1,'')
api.closeTuan = params => request.globalRequest(`/api/shop/shop/closeTuan`, 'POST', params, 1,'处理中')

api.addTuan = params => request.globalRequest(`/api/shop/shop/addTuan`, 'POST', params, 1,'添加中')

api.tuanBuyList = params => request.globalRequest(`/api/shop/shop/tuanBuyList`, 'POST', params, 1,'添加中')
api.logout = params => request.globalRequest(`/api/shop/user/logout`, 'POST', params, 1,'注销中')
api.configList = params => request.globalRequest(`/api/shop/shop/configList`, 'POST', params, 1,'')

api.addDiscount = params => request.globalRequest(`/api/shop/discount/add`, 'POST', params, 1,'添加中')



api.removeConfigItem = params => request.globalRequest(`/api/shop/shop/removeConfigItem`, 'POST', params, 1,'操作中')
api.addConfigSet = params => request.globalRequest(`/api/shop/shop/addConfigSet`, 'POST', params, 1,'操作中')

api.openNewDoor = params => request.globalRequest(`/api/shop/cmd/openNewDoor`, 'POST', params, 1,'操作中')
api.openNewRoom = params => request.globalRequest(`/api/shop/cmd/openNewRoom`, 'POST', params, 1,'操作中')

api.refund = params => request.globalRequest(`/api/shop/order/refund`, 'POST', params, 1,'操作中')




api.getShopCodeUrl = params => request.globalRequest(`/api/shop/shop/getShopCodeUrl`, 'POST', params, 1,'')
api.getRoomCodeUrl = params => request.globalRequest(`/api/shop/room/getRoomCodeUrl`, 'POST', params, 1,'')
api.getShopChargeCodeUrl = params => request.globalRequest(`/api/shop/shop/getChargeCodeUrl`, 'POST', params, 1,'')


api.meituanCouponList = params => request.globalRequest(`/api/shop/mt/getCouponList`, 'POST', params, 1,'')

api.couponSet = params => request.globalRequest(`/api/shop/mt/couponSet`, 'POST', params, 1,'')
api.syncCouponInfo = params => request.globalRequest(`/api/shop/mt/syncCouponInfo`, 'POST', params, 1,'同步中')
api.couponBuyList = params => request.globalRequest(`/api/shop/mt/couponBuyList`, 'POST', params, 1,'')



api.lineDeviceList = params => request.globalRequest(`/api/shop/line/deviceList`, 'POST', params, 1,'')
api.getLineSet = params => request.globalRequest(`/api/shop/line/lineSetList`, 'POST', params, 1,'')
api.removeLineSet = params => request.globalRequest(`/api/shop/line/removeLineSet`, 'POST', params, 1,'处理中')
api.addLineSet = params => request.globalRequest(`/api/shop/line/addSet`, 'POST', params, 1,'处理中')
api.lineOrderList = params => request.globalRequest(`/api/shop/line/orderList`, 'POST', params, 1,'')


api.douCouponSet = params => request.globalRequest(`/api/shop/dou/couponSet`, 'POST', params, 1,'')
api.syncDouCouponInfo = params => request.globalRequest(`/api/shop/dou/syncCouponInfo`, 'POST', params, 1,'同步中')
api.douCouponBuyList = params => request.globalRequest(`/api/shop/dou/couponBuyList`, 'POST', params, 1,'')
api.douCouponList = params => request.globalRequest(`/api/shop/dou/getCouponList`, 'POST', params, 1,'')

api.btLockInfo = params => request.globalRequest(`/api/app/lock/openLock`, 'POST', params, 1,'')

api.v2ShopIndex = params => request.globalRequest(`/api/shop/index/v2Index`, 'POST', params, 1,'')
api.v3ShopIndex = params => request.globalRequest(`/api/shop/index/v3Index`, 'POST', params, 1,'')

api.tuanRefund = params => request.globalRequest(`/api/shop/shop/tuanRefund`, 'POST', params, 1,'')
api.deleteRoom = params => request.globalRequest(`/api/shop/room/deleteRoom`, 'POST', params, 1,'删除中')
api.updateOrderBookTime = params => request.globalRequest(`/api/shop/order/updateOrderBookTime`, 'POST', params, 1,'更改中')
api.sendOrderTime = params => request.globalRequest(`/api/shop/order/sendOrderTime`, 'POST', params, 1,'更改中')
api.setRoom = params => request.globalRequest(`/api/shop/order/setRoom`, 'POST', params, 1,'更改中')

api.getNotice = params => request.globalRequest(`/api/app/shop/getNotice`, 'POST', params, 1,'')
api.addNotice = params => request.globalRequest(`/api/shop/shop/addNotice`, 'POST', params, 1,'添加中')
api.getCamera = params => request.globalRequest(`/api/shop/device/getCamera`, 'POST', params, 1,'')

api.setTuanUse = params => request.globalRequest(`/api/shop/shop/setTuanUse`, 'POST', params, 1,'处理中')

api.addCoupon = params => request.globalRequest(`/api/shop/coupon/add`, 'POST', params, 1,'添加中')
api.couponList = params => request.globalRequest(`/api/shop/coupon/getList`, 'POST', params, 1,'')

api.disableCoupon = params => request.globalRequest(`/api/shop/coupon/disableCoupon`, 'POST', params, 1,'处理中')




api.tableAdd = params => request.globalRequest(`/api/shop/shoptable/add`, 'POST', params, 1,'添加中')
api.tableList = params => request.globalRequest(`/api/shop/shoptable/getList`, 'POST', params, 1,'')
api.tableBindDevice = params => request.globalRequest(`/api/shop/shoptable/bindDevice`, 'POST', params, 1,'处理中')
api.tableDetail = params => request.globalRequest(`/api/shop/shoptable/detail`, 'POST', params, 1,'')
api.tagleOrderList = params => request.globalRequest(`/api/shop/shoptable/getOrderList`, 'POST', params, 1,'')
api.tableOverOrder = params => request.globalRequest(`/api/shop/shoptable/overOrder`, 'POST', params, 1,'')
api.updateOrderTable = params => request.globalRequest(`/api/shop/shoptable/updateOrderTable`, 'POST', params, 1,'处理中')

api.getTableCodeUrl = params => request.globalRequest(`/api/shop/shoptable/getTableCodeUrl`, 'POST', params, 1,'')
api.getTableBookCodeUrl = params => request.globalRequest(`/api/shop/shoptable/getTableBookCodeUrl`, 'POST', params, 1,'')


api.sendCoupon = params => request.globalRequest(`/api/shop/coupon/send`, 'POST', params, 1,'发送中')
api.getMaxHour = params => request.globalRequest(`/api/shop/room/getMaxHour`, 'POST', params, 1,'')


api.getCleanIndex = params => request.globalRequest(`/api/worker/index/indexV2`, 'POST', params, 1,'')

api.openTable = params => request.globalRequest(`/api/shop/cmd/openTable`, 'POST', params, 1,'操作中')
api.closeTableCmd = params => request.globalRequest(`/api/shop/cmd/closeTable`, 'POST', params, 1,'操作中')
api.shopTableOrderDetail = params => request.globalRequest(`/api/shop/shoptable/orderDetail`, 'POST', params, 1,'')


api.onlineCateList = params => request.globalRequest(`/api/shop/mall/cateList`, 'POST', params, 1,'')
api.onlineCaiGoodsList = params => request.globalRequest(`/api/shop/mall/caiGoodsList`, 'POST', params, 1,'')
api.onlineGoodsDetail = params => request.globalRequest(`/api/shop/mall/detail`, 'POST', params, 1,'')


api.addressList = params => request.globalRequest(`/api/shop/useraddress/addressList`, 'POST', params, 1,'')

api.addAddress = params => request.globalRequest(`/api/shop/useraddress/addAddress`, 'POST', params, 1,'添加中')
api.editAddress = params => request.globalRequest(`/api/shop/useraddress/editAddress`, 'POST', params, 1,'修改中')
api.defaultAddress = params => request.globalRequest(`/api/shop/useraddress/defaultAddress`, 'POST', params, 1,'')


api.addCaiOrder = params => request.globalRequest(`/api/shop/mall/addOrder`, 'POST', params, 1,'提交订单中')
api.caiOrderDetail = params => request.globalRequest(`/api/shop/mall/orderDetail`, 'POST', params, 1,'')

api.caiOrderList = params => request.globalRequest(`/api/shop/mall/orderList`, 'POST', params, 1,'')
api.cancelOrder = params => request.globalRequest(`/api/shop/mall/cancel`, 'POST', params, 1,'取消中')
api.caiPay = params => request.globalRequest(`/api/shop/mall/pay`, 'POST', params, 1,'支付中')

api.openAir = params => request.globalRequest(`/api/shop/cmd/openAir`, 'POST', params, 1,'')
api.openDing = params => request.globalRequest(`/api/shop/cmd/openDing`, 'POST', params, 1,'')


api.addSupplier = params => request.globalRequest(`/api/shop/index/addSupplier`, 'POST', params, 1,'')


api.assistantIndex = params => request.globalRequest(`/api/shop/assistant/index`, 'POST', params, 1,'')

api.assistantSetDetail = params => request.globalRequest(`/api/shop/assistant/takeDetail`, 'POST', params, 1,'')
api.assistantSetUpdate = params => request.globalRequest(`/api/shop/assistant/updateSet`, 'POST', params, 1,'修改中')
api.assistantDetail = params => request.globalRequest(`/api/shop/assistant/detail`, 'POST', params, 1,'')
api.initList = params => request.globalRequest(`/api/app/assistant/initList`, 'POST', params, 1,'')
api.addAssistant = params => request.globalRequest(`/api/shop/assistant/add`, 'POST', params, 1,'提交中')

api.assistOrderList = params => request.globalRequest(`/api/shop/assistant/orderList`, 'POST', params, 1,'')

api.updateStatus = params => request.globalRequest(`/api/shop/assistant/updateStatus`, 'POST', params, 1,'处理中')
api.assistantOrderDetail = params => request.globalRequest(`/api/shop/assistant/orderDetail`, 'POST', params, 1,'')


api.ksCouponList = params => request.globalRequest(`/api/shop/ks/getCouponList`, 'POST', params, 1,'')
api.syncKsCouponInfo = params => request.globalRequest(`/api/shop/ks/syncCouponInfo`, 'POST', params, 1,'同步中')
api.ksCouponSet = params => request.globalRequest(`/api/shop/ks/couponSet`, 'POST', params, 1,'')
api.deleteTable = params => request.globalRequest(`/api/shop/shoptable/deleteTable`, 'POST', params, 1,'删除中')

api.addFile = params => request.globalRequest(`/api/shop/shopfile/add`, 'POST', params, 1,'添加中')
api.fileInfo = params => request.globalRequest(`/api/shop/shopfile/info`, 'POST', params, 1,'')

api.testInfo = params => request.globalRequest(`/api/app/test/info`, 'POST', params, 1,'')
api.testOpen = params => request.globalRequest(`/api/app/test/testCmd`, 'POST', params, 1,'')


api.investSummary = params => request.globalRequest(`/api/shop/invest/summary`, 'POST', params, 1,'')


api.moneyData = params => request.globalRequest(`/api/shop/money/data`, 'POST', params, 1,'')

api.testInfo2 = params => request.globalRequest(`/api/index/getInfo`, 'POST', params, 1,'')
api.testBrand = params => request.globalRequest(`/api/index/brand`, 'POST', params, 1,'')
api.testUpdateDeviceBrand = params => request.globalRequest(`/api/index/updateDeviceBrand`, 'POST', params, 1,'修改中')


api.discountList = params => request.globalRequest(`/api/shop/discount/getList`, 'POST', params, 1,'')
api.closeDiscount = params => request.globalRequest(`/api/shop/discount/closeDiscount`, 'POST', params, 1,'关闭中')
api.discountTakeList = params => request.globalRequest(`/api/shop/discount/takeList`, 'POST', params, 1,'')
api.discountDetail = params => request.globalRequest(`/api/shop/discount/detail`, 'POST', params, 1,'')

api.v2ShopIndex = params => request.globalRequest(`/api/shop/index/v2Index`, 'POST', params, 1,'')



api.onlineCateList = params => request.globalRequest(`/api/shop/online/cateList`, 'POST', params, 1,'')
api.onlineCateAdd = params => request.globalRequest(`/api/shop/online/addCate`, 'POST', params, 1,'处理中')
api.onlineCateDelete= params => request.globalRequest(`/api/shop/online/deleteCate`, 'POST', params, 1,'处理中')
api.onlineGoodList= params => request.globalRequest(`/api/shop/online/goodList`, 'POST', params, 1,'')
api.onlineAddGood= params => request.globalRequest(`/api/shop/online/addGood`, 'POST', params, 1,'处理中')
api.onlineDeleteGood= params => request.globalRequest(`/api/shop/online/deleteGood`, 'POST', params, 1,'处理中')
api.onlineGoodDetail = params => request.globalRequest(`/api/shop/online/goodDetail`, 'POST', params, 1,'')
api.onlineOrderList = params => request.globalRequest(`/api/shop/online/orderList`, 'POST', params, 1,'')
api.onlineOrderDetail = params => request.globalRequest(`/api/shop/online/getOrderDetail`, 'POST', params, 1,'')
api.onlineOrderDone = params => request.globalRequest(`/api/shop/online/done`, 'POST', params, 1,'')
api.onlineOrderRefund = params => request.globalRequest(`/api/shop/online/refund`, 'POST', params, 1,'退款中')


api.orderInit = params => request.globalRequest(`/api/shop/orderbook/orderInit`, 'POST', params, 1,'')
api.checkOrderBookTime = params => request.globalRequest(`/api/app/order/checkOrderBookTimeV2`, 'POST', params, 1,'')

api.addBookOrder = params => request.globalRequest(`/api/shop/orderbook/addBookOrderFz`, 'POST', params, 1,'下单中')

api.bookOrderDetail = params => request.globalRequest(`/api/shop/orderbook/detail`, 'POST', params, 1,'下单中')

api.bookOrderPay = params => request.globalRequest(`/api/shop/orderbook/payOrder`, 'POST', params, 1,'支付校验中')

export default api